/* Yet Another Experimental Software Renderer
 *
 * Copyright (c) 2010 Pawel "Hery" Dziepak
 */

#include "utils.h"
#include "hull_shader.h"
#include "math.h"

using namespace yaesr;

int hull_shader_impl::execute(triangle tri) {
	double z = (tri.vert0.position.z + tri.vert1.position.z + tri.vert2.position.z) / 3.0;
	return 14.0 * lerp(1.0, 0.0000001, z);
}
